package com.example.gitmadhack13;



import java.util.*;
public class Course extends BasicCourse{
	private String subject;
	private Date startDate;
	private Date endDate;
	private String instructor;
	private int crn;
	private String summary;
	private int hours;
	private String section;
	
	public Course(String name, int courseNumber)
	{
		super(name,courseNumber);
	}
	public boolean isInteger(String input){
		try{
			Integer.parseInt(input);
			return true;
		}catch(Exception e){
			return false;
		}	
	}
	
	public Course(String subject, String name,int courseNumber,Date startDate,Date endDate,
			String instructor,int crn,String summary,int hours,String section)
	{
		super(name,courseNumber);
		this.subject = subject;
		this.startDate = startDate;
		this.endDate = endDate;
		this.instructor = instructor;
		this.crn = crn;
		this.summary = summary;
		this.hours = hours;
		this.section = section;
	}
	public String getSubject()
	{
		return subject;
	}
	public Date getStartDate()
	{
		return startDate;
	}
	public Date getEndDate()
	{
		return endDate;
	}
	public String getInstructor()
	{
		return instructor;
	}
	public int getCrn()
	{
		return crn;
	}
	public String getSummary()
	{
		return summary;
	}
	public int getHours()
	{
		return hours;
	}
	public String getSection()
	{
		return section;
	}

}
